
import { SQUARE_SET_DATA } from './../action/actionType';
export let square = (state = {
    squareData: null
}, action) => {
    let { type } = action;
    let newState = { ...state };
    switch (type) {
        case SQUARE_SET_DATA:
            newState.squareData = action.data;
            return newState
            break;
        default:
            return newState
            break;
    }
}